<template>
	<view>
		<view class="content">
			<view class="box">
				<view class="box-one">
					24.56%
				</view>
				<view class="box-two">
					定位卡片剩余电量
				</view>
				<view class="box-three">
					卡片编号:{{obj.snbq}}
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	import {detail} from '@/api/userid.js'
	export default {
		data() {
			return {
				id:'',
				obj:{}
			}
		},
		onShow() {
			this.userId=uni.getStorageSync('userId')
			this.id=this.userId
			this.init()
		},
		methods: {
			init(){
				detail({id:this.id}).then(res=>{
					this.obj=res.data
				})
			},
		}
	}
</script>

<style lang="scss">
	page{
		background-color: #f5f5f5;
	}
.content{
	width: 100%;
	height: 100%;
	padding: 40rpx 24rpx;
	box-sizing: border-box;
	background-color: #f6f6f6;
	.box{
		width: 702rpx;
		height: 360rpx;
		border-radius: 16rpx;
		background-color: cornflowerblue;
		background: url('../../static/image/img.gif');
		background-size: 702rpx 360rpx;
		// display: flex;
		// justify-content: center;
		// align-items: center;
		// flex-direction: column;
		text-align: center;
		color: #fff;
		.box-one{
			font-size: 80rpx;
			padding-top: 100rpx;
		}
		.box-two{
			font-size: 14rpx;
			padding: 10rpx 0 60rpx;
		}
		.box-three{
			font-size: 12rpx;
		}
	}
}
</style>
